/* ===============================
   DRIE VORMEN – FLIP CARDS
================================= */

.vormen-intro {
    font-size: 1.3rem;
    font-style: italic;
    color: #ffffff;
    opacity: 1;
    margin-bottom: 2rem;
    text-align: center;
}

/* Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

/* Flip card wrapper */
.flip-card {
    cursor: pointer;
    transition: transform .3s ease;
}
.flip-card:hover {
    transform: translateY(-6px);
}

/* Voor- en achterkant */
.flip-front,
.flip-back {
    width: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.6rem;
}

/* Voorkant — standaard zichtbaar */
.flip-front {
    background: rgba(248, 231, 192, 0.85);
    box-shadow: 0 15px 30px rgba(0,0,0,0.55), 0 5px 15px rgba(0,0,0,0.35);
    border: 1px solid rgba(58, 42, 26, 0.12);
    text-align: center;
}

/* Achterkant — standaard verborgen */
.flip-back {
    background: rgba(42, 26, 12, 0.92);
    box-shadow: 0 15px 30px rgba(0,0,0,0.65), 0 5px 15px rgba(0,0,0,0.45);
    border: 1px solid rgba(248, 231, 192, 0.1);
    align-items: flex-start;
    justify-content: flex-start;
    display: none;
}

/* Geflipte staat */
.flip-card.flipped .flip-front {
    display: none;
}
.flip-card.flipped .flip-back {
    display: flex;
}

/* Voorkant inhoud */
.card-num {
    font-size: .68rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(58, 42, 26, .45);
    margin-bottom: 1.2rem;
}
.card-chinese {
    font-size: 5rem;
    color: #7a4f1e;
    line-height: 1;
    margin-bottom: .8rem;
    font-family: serif;
    filter: drop-shadow(0 2px 8px rgba(122,79,30,.2));
    transition: transform .3s;
    display: block;
}
.flip-card:hover .card-chinese {
    transform: scale(1.06);
}
.card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #3A2A1A;
    margin-bottom: .35rem;
    letter-spacing: .04em;
}
.card-translation {
    font-size: .95rem;
    font-style: italic;
    color: rgba(58, 42, 26, .6);
}
.card-hint {
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(58, 42, 26, .35);
    margin-top: 1rem;
}

/* Achterkant inhoud */
.back-header {
    display: flex;
    align-items: flex-end;
    gap: .8rem;
    width: 100%;
    padding-bottom: .9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(248, 231, 192, .15);
}
.back-chinese-sm {
    font-size: 2rem;
    color: rgba(248, 231, 192, .3);
    font-family: serif;
    line-height: 1;
}
.back-title {
    font-size: .9rem;
    font-weight: 700;
    color: rgba(248, 231, 192, .9);
    letter-spacing: .06em;
}
.back-desc {
    font-size: .95rem;
    line-height: 1.75;
    color: rgba(248, 231, 192, .6);
    margin-bottom: 1.2rem;
}
.back-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    width: 100%;
    padding: 0;
    margin: 0;
}
.back-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .88rem;
    line-height: 1.5;
    color: rgba(248, 231, 192, .45);
}
.back-list li::before {
    content: '—';
    color: #b8832a;
    flex-shrink: 0;
    font-size: .8rem;
    margin-top: .1em;
}
/* ===========================
   QUOTES WIDGET
=========================== */
.quotes-widget {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

.quotes-widget-trigger {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(248, 231, 192, 0.85);
    border: 1px solid rgba(218, 195, 153, 0.5);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    color: #3A2A1A;
}

.quotes-widget-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background-color: rgba(248, 231, 192, 0.95);
    padding: 0 1.5rem;
    border-radius: 0 0 16px 16px;
}

.quotes-widget-panel.open {
    max-height: 2000px;
    padding: 1.5rem;
}

.quote-accordion-item {
    margin-bottom: 0.75rem;
    border-radius: 10px;
}

.quote-trigger {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    background: rgba(218, 195, 153, 0.3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #3A2A1A;
}

.quote-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.quote-content.open {
    max-height: 200px;
    padding: 0.75rem 1rem;
}

.quotes-sluit {
    display: block;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: rgba(165, 145, 105, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .flip-card {
        width: 80%;
        max-width: 320px;
        margin: 0 auto;
    }
}
